import { Rate } from "antd";

export default ({ value, onChange }) => {
  return (
    <>
      <Rate value={value} onChange={onChange} />
      {value && <span style={{ color: "red", marginLeft: 10 }}>{value}分</span>}
    </>
  );
};
